package com.wandian.audio.adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wandian.audio.R;
import com.wandian.audio.bean.MusicBean;

/**
 * 排行榜-适配器
 */
public class AudioMusicRankRecycleAdapter extends BaseQuickAdapter<MusicBean, BaseViewHolder> {

    public AudioMusicRankRecycleAdapter(int layoutResId) {
        super(layoutResId);
    }


    @Override
    protected void convert(BaseViewHolder helper, MusicBean item) {
        helper.setText(R.id.tv_music_name, item.getName()+"")
                .setText(R.id.tv_music_author, item.getNickname()+"")
                .setText(R.id.tv_music_like_number, item.getCommentCount()+"");

    }

}
